using System.Text;
using System;
using System.Collections.Generic;
using AmazeUI;
using AmazeUI.Imodel;
namespace AmazeUI.db
{
    public partial class Article
    {

        public Article(IArticle model)
            : this()
        { 
            SetModel(model);
            this.UpTime = DateTime.Now;
        }
        public void SetModel(IArticle model)
        {
            this.XtUserId = model.XtUserId;

            this.Titel = model.Titel;
            this.CommentMin = model.CommentMin;
            this.Comment = model.Comment;

            this.Img = model.Img;
            this.Score = model.Score;
            this.Praise = model.Praise;
            this.Remarks = model.Remarks;

        }

    }
}
